package com.feilong.modules.dao.goods;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.feilong.modules.model.goods.po.GoodsInfoPO;
import com.feilong.modules.model.goods.request.QueryGoodsRequest;
import com.feilong.modules.model.goods.vo.GoodsInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GoodsInfoDao extends BaseMapper<GoodsInfoPO> {

    /**
     * 从mysql中获取商品列表或者查询商品
     * @param query
     * @param page
     * @return
     */
    List<GoodsInfoVO> getGoodsList(@Param("query") QueryGoodsRequest query, @Param("page") Page<GoodsInfoVO> page);
}
